package com.kclm.xsap.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper=false)
@TableName("t_reservation_record")
@Accessors(chain = true)
public class ReservationRecordEntity22 implements Serializable {
	private static final long serialVersionUID = 1L;

	
	@TableId
	private Long id;
	
	private Integer status;
	
	private Integer reserveNums;
	
	private Integer cancelTimes;
	
	private String comment;
	
	private String note;
	
	private String classNote;
	
	private String operator;
	
	private Long memberId;
	
	private Long cardId;
	
	private String cardName;
	
	private Long scheduleId;

	private LocalDateTime startDate;
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime lastModifyTime;
	
	@Version
	private Integer version ;


	
	@TableField(exist = false)
	@ToString.Exclude
	private ScheduleRecordEntity scheduleRecordEntity;

	
	@TableField(exist = false)
	@ToString.Exclude
	private MemberEntity memberEntity;

	
	@TableField(exist = false)
	@ToString.Exclude
	private CourseEntity courseEntity;



}
